﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace subdump
{
    public partial class MainWindow : Form
    {
      
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btnBrowse_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = openMovieFile.ShowDialog();
            openMovieFile.Multiselect = false;
            if (dialogResult == DialogResult.OK)
            {
                tbInputFileName.Text = openMovieFile.FileName;
            }
            pbMainLoader.Visible = true;
            OpenSubtitles os = new OpenSubtitles();
            os.searchMovie(openMovieFile.FileName);
            
        }

        private void openSubtitlesInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenSubtitlesInfoWindow osiw = new OpenSubtitlesInfoWindow(this);
            osiw.Show();

        }

        private void gbSubttileList_Enter(object sender, EventArgs e)
        {

        }

        private void MainWindow_Load(object sender, EventArgs e)
        {

        }

       
    }
}
